package types

import (
	"cuelang.org/go/cue/ast"
)

type Binary struct {
	vv *ast.BinaryExpr
}
//ast.UnaryExpr.X.(*ast.BasicLit).Value
func (t *Binary) Value(ref bool) string {
	return t.vv.X.(*ast.Ident).Name
}

func (t *Binary) Default() string{
	return t.vv.Y.(*ast.UnaryExpr).X.(*ast.BasicLit).Value
}
